﻿@model RTracker.Models.User.GUser

@{
    var IsUserLoggedInCheck = "";
    if (Model.User.LogonStatus == 1)
    {
        IsUserLoggedInCheck = "checked";
    }
    var IsUserBlockedCheck = "";
    if (Model.User.LogonLocked == 1)
    {
        IsUserBlockedCheck = "checked";
    }
    var UserACStatusCheck = "";
    if (Model.User.UserAccountStatus == 1)
    {
        UserACStatusCheck = "checked";
    }
    var ChangePassOnNextLogonCheck = "";
    if (Model.User.ChangePasswordNextLogon == true)
    {
        ChangePassOnNextLogonCheck = "checked";
    }
}

<style type="text/css">
    .cellMod {
        padding: 0px;
        margin: 0px;
        border: none;
    }
<<<<<<< .mine

    .titleCell {
        font-family: Arial;
        padding-left: 5px;
        font-size:12px;
=======

    .titleCell {
        font-family: Arial;
        padding-left: 5px;
>>>>>>> .r30
    }
</style>

<form id="frm">

    <div class="dt-save-cls">
        <div class="box-icon">
            <span id="btn-Save-id" class="Save cursor-pointer-cls ">Save</span> @*Removed Class gd-disabled-cls*@
        </div>
        <div class="gb-hardlock-cls">
            <span class="gb-set-hardlock-cls"></span>
        </div>
    </div>
    <fieldset style="margin-bottom:0px; padding-bottom:0px;">
        <legend>CUser</legend>

        <table style="width:100%; margin:auto; font-size:10px">
            <tbody>
                <tr>
                    <td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.FirstName)</td>
                    <td class="cellMod">
                        <input type="text" name="@Html.NameFor(model => model.User.FirstName)" value="@(!Model.User.FirstName.Trim().Equals(string.Empty) ? Model.User.FirstName : "")">
                    </td>
                    <td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.LastName)</td>
                    <td class="cellMod">
                        <input type="text" name="@Html.NameFor(model => model.User.LastName)" value="@(!Model.User.LastName.Trim().Equals(string.Empty) ? Model.User.LastName : "")">
                    </td>
                </tr>

                <tr>
                    <td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.LogonName)</td>
                    <td class="cellMod">
                        <input type="text" name="@Html.NameFor(model => model.User.LogonName)" value="@(!Model.User.LogonName.Trim().Equals(string.Empty) ? Model.User.LogonName : "")">
                    </td>
                    <td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.Title)</td>
                    <td class="cellMod">
                        <input type="text" name="@Html.NameFor(model => model.User.Title)" value="@(!Model.User.Title.Trim().Equals(string.Empty) ? Model.User.Title : "")">
                    </td>
                </tr>

                <tr>
                    <td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.EmailAddress)</td>
                    <td class="cellMod">
                        <input type="email" name="@Html.NameFor(model => model.User.EmailAddress)" value="@(!Model.User.EmailAddress.Trim().Equals(string.Empty) ? Model.User.EmailAddress : "")">
                    </td>
                    <td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.Gender)</td>
                    <td class="cellMod">
                        <select name="@Html.NameFor(model => model.User.Gender)">
                            <option value="Select" @(@Model.User.Gender.Equals("") ? "selected" : "")>Select</option>
                            <option value="Male" @(@Model.User.Gender.Equals("Male") ? "selected" : "")>Male</option>
                            <option value="Female" @(@Model.User.Gender.Equals("Female") ? "selected" : "")>Female</option>
                        </select>
                    </td>
                </tr>


                <tr>
                    @*<td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.LogonStatus)</td>
                    <td class="cellMod">
                        <input id="" type="checkbox" @IsUserLoggedInCheck />
                    </td>*@
                    <td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.UserAccountStatus)</td>
                    <td class="cellMod">
                        <input type="checkbox" name="@Html.NameFor(model => model.User.UserAccountStatus)" @UserACStatusCheck />
                        @if (@UserACStatusCheck.Equals("checked"))
                        {
                            <span>Account Activated</span>
                        }
                        else
                        {
                            <span>Account De-activated</span>
                        }
                    </td>
                </tr>

                <tr>
                    <td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.LogonLocked)</td>
                    <td class="cellMod">
                        <input type="checkbox" name="@Html.NameFor(model => model.User.LogonLocked)" @IsUserBlockedCheck />
                    </td>
                    <td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.LogonLockedTimestamp)</td>
                    <td class="cellMod">
                        <label>
                            @(!Model.User.LogonLockedTimestamp.ToString().Trim().Equals(string.Empty) ? Model.User.LogonLockedTimestamp.ToString() : "-")
                        </label>
                    </td>
                </tr>


                <tr>
                    <td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.ChangePasswordNextLogon)</td>
                    <td class="cellMod">
                        <input type="checkbox" name="@Html.NameFor(model => model.User.ChangePasswordNextLogon)" @ChangePassOnNextLogonCheck />
                    </td>
                    <td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.PasswordChangeTimestamp)</td>
                    <td class="cellMod">
                        <label>
                            @(!Model.User.PasswordChangeTimestamp.ToString().Trim().Equals(string.Empty) ? Model.User.PasswordChangeTimestamp.ToString() : "-")
                        </label>
                    </td>
                </tr>
                <tr>
                    <td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.ActivationDate)</td>
                    <td class="cellMod">
                        <label>
                            @(!Model.User.ActivationDate.ToString().Trim().Equals(string.Empty) ? Model.User.ActivationDate.ToString() : "-")
                        </label>
                    </td>
                    <td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.ExpirationDate)</td>
                    <td class="cellMod">
                        <label>
                            @(!Model.User.ExpirationDate.ToString().Trim().Equals(string.Empty) ? Model.User.ExpirationDate.ToString() : "-")
                        </label>
                    </td>
                </tr>
                <tr>
                    <td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.CreatedByName)</td>
                    <td class="cellMod">
                        <label>
                            @(!Model.User.CreatedByName.Trim().Equals(string.Empty) ? Model.User.CreatedByName : "-")
                        </label>
                    </td>
                    <td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.CreateTimestamp)</td>
                    <td class="cellMod">
                        <label>
                            @(!Model.User.CreateTimestamp.ToString().Trim().Equals(string.Empty) ? Model.User.CreateTimestamp.ToString() : "-")
                        </label>
                    </td>
                </tr>
                <tr>
                    <td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.ModifiedByName)</td>
                    <td class="cellMod">
                        <label>
                            @(!Model.User.ModifiedByName.Trim().Equals(string.Empty) ? Model.User.ModifiedByName : "-")
                        </label>
                    </td>
                    <td class="cellMod titleCell">@Html.DisplayNameFor(model => model.User.ModifiedTimestamp)</td>
                    <td class="cellMod">
                        <label>
                            @(!Model.User.ModifiedTimestamp.ToString().Trim().Equals(string.Empty) ? Model.User.ModifiedTimestamp.ToString() : "-")
                        </label>
                    </td>
                </tr>
            </tbody>
        </table>
    </fieldset>
</form>

<<<<<<< .mine
=======


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
>>>>>>> .r30
